package com.workpaper.app.workpaper.daily.providers;

import java.util.Collection;

import org.apache.commons.lang3.ArrayUtils;
import org.eclipse.jface.viewers.IStructuredContentProvider;
/**
 * 工作日报表格的内容提供器
 * @author zyj
 *
 */
public class DailyWorkpaperTableContentProvider implements IStructuredContentProvider{

	@Override
	public Object[] getElements(Object inputElement) {
		if(inputElement instanceof Collection) {
			return ((Collection<?>)inputElement).toArray();
		}
		return ArrayUtils.EMPTY_OBJECT_ARRAY;
	}

}
